/**
 * 
 */
package org.vsg.stock.basic.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.vsg.stock.basic.DailyStock;

/**
 * @author vison
 *
 */
@Entity
@Table(name = "STOCK_DAILY_LINE")
public class StockDailyLine implements Serializable,DailyStock {

	@Id @Column(name="ID") @GeneratedValue(strategy=GenerationType.IDENTITY)		
	private long id;

	@Column(name="STOCK_CODE")	
	private String stockCode;

	@Column(name="STOCK_DATE")		
	private Date date;

	@Column(name="OPEN")		
	private double open;

	@Column(name="HIGH")		
	private double high;

	@Column(name="LOW")		
	private double low;
	
	@Column(name="CLOSE")		
	private double close;

	@Column(name="YIELD_RATE")	
	private double yieldRate;
	
	@Column(name="VOL")		
	private long vol;

	@Column(name="TRANSACTION_VALUE")		
	private double transactionValue;

	@Column(name="EX_RIGHTS")		
	private short exRights;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getStockCode() {
		return stockCode;
	}

	public void setStockCode(String stockCode) {
		this.stockCode = stockCode;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public double getOpen() {
		return open;
	}

	public void setOpen(double open) {
		this.open = open;
	}

	public double getHigh() {
		return high;
	}

	public void setHigh(double high) {
		this.high = high;
	}

	public double getLow() {
		return low;
	}

	public void setLow(double low) {
		this.low = low;
	}

	public double getClose() {
		return close;
	}

	public void setClose(double close) {
		this.close = close;
	}


	
	public double getYieldRate() {
		return yieldRate;
	}

	public void setYieldRate(double yieldRate) {
		this.yieldRate = yieldRate;
	}

	public long getVol() {
		return vol;
	}

	public void setVol(long vol) {
		this.vol = vol;
	}

	public double getTransactionValue() {
		return transactionValue;
	}

	public void setTransactionValue(double transactionValue) {
		this.transactionValue = transactionValue;
	}

	public short getExRights() {
		return exRights;
	}

	public void setExRights(short exRights) {
		this.exRights = exRights;
	}

	
	
}
